package com.cn.ss.main;

import com.cn.ss.processor.IntegerServerProcessor;
import com.cn.ss.protocol.IntegerProtocol;
import org.smartboot.socket.transport.AioQuickServer;

import java.io.IOException;

/**
 * Created by chenyuncong on 2019/3/26.
 */
public class IntegerServer {
    public static void main(String[] args) throws IOException {
        AioQuickServer<Integer> server = new AioQuickServer<Integer>(8888, new IntegerProtocol(), new IntegerServerProcessor());
        server.start();
    }
}
